package com.mall.business.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 秒杀活动对象 t_seckill
 *
 * @author ruoyi
 * @date 2025-03-29
 */
@Data
@TableName(value = "t_seckill")
@EqualsAndHashCode(callSuper = true)
public class TSeckill extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "秒杀活动名称"
     */
    @Excel(name = "秒杀活动名称")
    private String title;
    /**
     * "商品Id"
     */
    @Excel(name = "商品Id")
    private String productId;
    /**
     * "秒杀价格"
     */
    @Excel(name = "秒杀价格")
    private BigDecimal price;
    /**
     * "商品个数  库存"
     */
    @Excel(name = "商品个数")
    private Long totalNum;
    /**
     * "最多秒杀个数"
     */
    @Excel(name = "最多秒杀个数")
    private Long num;
    /**
     * "销量"
     */
    @Excel(name = "销量")
    private Long sales;


    /**
     * "活动开始时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * "活动结束时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    /**
     * "活动开启状态"
     */
    @Excel(name = "活动开启状态")
    private String status;

    /**
     * "商品名称"
     */
    @TableField(exist = false)
    private String productName;


    /**
     * "产品信息"
     */
    @TableField(exist = false)
    private TProduct product;


    /**
     * "商品价格"
     */
    @TableField(exist = false)
    private String productPrice;

    /**
     * "商品封面"
     */
    @TableField(exist = false)
    private String productImage;





}
